﻿@{
    ViewBag.Title = "保单详情";
    var id = Model != null ? Model.ID : 0;
}
@using ZBJF.Warranty.Common.Enums.Certificate
@using ZBJF.Warranty.Common.Enums.InsuranceOrder
@model ZBJF.Warranty.Model.InsuranceOrder
<h4>基本信息</h4>
<table class="table table-responsive table-bordered table-hover">
    <tr>
        <th>保单号 </th>
        <th>保额 </th>
        <th>投保时间</th>
        <th>保险起期</th>
        <th>保险止期</th>
        <th>保单状态 </th>
    </tr>
    <tr>
        <td>
            @Html.DisplayFor(o => o.ThirdOrderNO)
        </td>
        <td>
            @Html.DisplayFor(o => o.InsuredAmount)
        </td>
        <td>
            @Html.DisplayFor(o => o.CreateOrderTime)
        </td>
        <td>
            @Html.DisplayFor(o => o.EffectiveDate)
        </td>
        <td>
            @Html.DisplayFor(o => o.ServiceEndTime)
        </td>
        <td class="red">
            @ZBJF.Warranty.Common.Common.EnumHelper.Instance.GetDescription(typeof (InsuranceOrderStatus), Model.OrderStatus)
        </td>
    </tr>
</table>
<h4>产品与设备信息</h4>
<table class="table table-responsive table-bordered table-hover">
    <tr>
        <th>保险产品类别</th>
        <th>保险产品名称</th>
        <th>设备类型</th>
        <th>品牌</th>
        <th>型号</th>
        <th>设备识别码</th>
    </tr>
    <tr>
        <td>
            @Html.DisplayFor(o => o.InsuranceCategoryName)
        </td>
        <td>
            @Html.DisplayFor(o => o.ProductName)
        </td>
        <td>
            @Html.DisplayFor(o => o.ProductTypeName)
        </td>
        <td>
            @Html.DisplayFor(o => o.ProductBrandName)
        </td>
        <td>
            @Html.DisplayFor(o => o.ProductModelName)
        </td>
        <td>
            @(Model.IMEI ?? Model.IDFV)
        </td>
    </tr>
</table>
<h4>用户信息</h4>
<table class="table table-responsive table-bordered table-hover">
    <tr>
        <th>被保险人</th>
        <th>被保险人电话</th>
        <th>证件类型</th>
        <th>证件号码</th>
    </tr>
    <tr>
        <td>
            @Html.DisplayFor(o => o.UserName)
        </td>
        <td>
            @Html.DisplayFor(o => o.UserPhone)
        </td>
        <td>
            @ZBJF.Warranty.Common.Common.EnumHelper.Instance.GetDescription(typeof (UserCertificateType), Model.CertificateType)
        </td>
        <td>
            @Html.DisplayFor(o => o.CertificateNO)
        </td>
    </tr>
</table>
<h4>销售信息</h4>
<table class="table table-responsive table-bordered table-hover">
    <tr>
        <th>销售商户名称</th>
        <th>销售人姓名</th>
        <th>负责人姓名</th>
        <th>负责人电话</th>
        <th>销售商地址</th>
    </tr>
    <tr>
        <td>
            @Html.DisplayFor(o => o.SaleVendorName)
        </td>
        <td>
            @Html.DisplayFor(o => o.SalePersonName)
        </td>
        <td>
            @Html.DisplayFor(o => o.SaleManagerName)
        </td>
        <td>
            @Html.DisplayFor(o => o.SaleManagerPhone)
        </td>
        <td>
            @Html.DisplayFor(o => o.SaleAddress)
        </td>
    </tr>
</table>


